package Chapter2.Comparing.c9;

//import Chapter2.Comparing.c3.Test1;

public class ThreadTest extends Thread{
    public void run() {
        while (true) {
            System.out.println("---------");
            try {
                Thread.sleep(500);
            } catch (InterruptedException e) {
                e.printStackTrace();
            }
        }
    }

    public static void main(String[] args) {
        ThreadTest test1 = new ThreadTest();
        test1.start();
        while (true) {
            System.out.println("main+++++++++++");
            try {
                Thread.sleep(500);
            } catch (InterruptedException e) {
                e.printStackTrace();
            }

        }

    }
}
